package com.lanou.service.impl;

import com.lanou.bean.RoleModule;
import com.lanou.mapper.RoleModuleMapper;
import com.lanou.service.RoleModuleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by dllo on 18/3/12.
 */
@Service
public class RoleModuleServiceImpl implements RoleModuleService {
    @Resource
    private RoleModuleMapper roleModuleMapper;
    @Override
    public void addRoleModule(RoleModule roleModule) {
        roleModuleMapper.addRoleModule(roleModule);
    }

    @Override
    public void deleteModuleByRole(int roleId) {
        roleModuleMapper.deleteModuleByRole(roleId);
    }

    @Override
    public void insertModule(int roleId, int moduleId) {
        roleModuleMapper.insertModule(roleId,moduleId);
    }
}
